/*
 *	女人的体重如果小于身高减110算不超重;
 *	男人的体重如果小于身高减105算不超重.
 *	变量 gender(0表示女,1表示男)
 *	变量 weight(以公斤为单位)
 *	变量 height(以厘米为单位)
 *	如果这个人不超重,则逻辑表达式为真.
 */

#include<stdio.h>

int main() {
	int gender = 0, weight = 0, height = 0;
	printf("输入性别\n");
	char ChsGender = 0;
	scanf("%c", &ChsGender);
	if (ChsGender == '男') {
		gender = 1;
	}
	else if(ChsGender = '女') {
		gender = 0;
	}
	else {
		gender = -1;
		printf("你是人妖吗?\n");
	}
	printf("输入体重(Kg)\n");
	scanf("%d", &weight);
	printf("输入身高(cm)\n");
	scanf("%d", &height);
	result = (gender == 0 && height - 110 >= weight) || (gender == 1 && height - 105 >= weight);
	return 0;
}
